<template>
  <NuxtLayout>
    <common-editor-view v-if="data?.websiteAboutUs" class="main-container" :value="data?.websiteAboutUs" />
  </NuxtLayout>
</template>
<script setup>
  import { indexApi } from '~/api'

  const { data } = await useAsyncData(async () => {
    return indexApi.websiteInfo()
  })

  useHead({
    title: '关于我们'
  })
</script>
<style lang="scss" scoped>
  .main-container {
    min-height: calc(100vh - $header-height - $footer-height - 40px);
    margin: 20px auto;
  }
</style>
